package com.ssm.zyn.dao;

import com.ssm.zyn.eo.TestQuestionEOpage;
import com.ssm.zyn.model.TestQuestion;
import com.ssm.zyn.model.TestTable;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 操作数据库方法的对接
 */
@Mapper
@Component
public interface TestquestionMapper {
    //试卷考题添加
    int insertTestquestion(TestQuestion testQuestion);
    //通过名称获取数量
    int getTestIdCount(Integer testid);
    //通过主键更新
    int updateTestQuestion(TestQuestion testQuestion);
    //通过主键删除
    int delTestQuestiom(Integer testqid);
    //根据条件获取相关信息
    List<TestQuestionEOpage> getWhereAll(TestQuestionEOpage testQuestionEOpage);
}
